<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	  xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>所有部门查看</title>
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
	<link rel="stylesheet" href="../../static/plugins/bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="../../static/plugins/adminLTE/css/AdminLTE.css">
	<link rel="stylesheet" href="../../static/plugins/adminLTE/css/skins/_all-skins.min.css">
	<link rel="stylesheet" href="../../static/css/style.css">
	<script src="../../static/plugins/jQuery/jquery-2.2.3.min.js"></script>
	<script src="../../static/plugins/bootstrap/js/bootstrap.min.js"></script>

	<script type="text/javascript" src="../../static/plugins/angularjs/angular.min.js"></script>

	<script type="text/javascript" src="../../static/js/base_pagination.js"></script>
	<script type="text/javascript" src="../../static/js/service/departmentService.js"></script>
	<script type="text/javascript" src="../../static/js/controller/baseController1.js"></script>
	<script type="text/javascript" src="../../static/js/controller/departmentController.js"></script>

	<script th:src="@{/static/js/base_pagination.js}"></script>
	<script th:src="@{/static/js/service/departmentService.js}"></script>
	<script th:src="@{/static/js/controller/baseController1.js}"></script>
	<script th:src="@{/static/js/controller/departmentController.js}"></script>
	<script th:src="@{/static/plugins/angularjs/angular.min.js}"></script>
	<script th:src="@{/static/plugins/jQuery/jquery-2.2.3.min.js}"></script>

    <!-- 分页组件开始 -->
    <script type="text/javascript" src="../plugins/angularjs/pagination.js"></script>
    <script th:src="@{/static/plugins/angularjs/pagination.js}"></script>
    <link rel="stylesheet" href="../plugins/angularjs/pagination.css">
    <!-- 分页组件结束 -->

		
	
	
</head>

<body class="hold-transition skin-red sidebar-mini" ng-app="credit" ng-controller="departmentController" ng-init="reloadList()">
  <!-- .box-body -->
                
                    <div class="box-header with-border">
                        <h3 class="box-title">部门信息     
                       	</h3>
                    </div>

                    <div class="box-body">
                  			 

                        <!-- 数据表格 -->
                        <div class="table-box">

							
							
							
                            <!--工具栏-->
                            <div class="pull-left">
                                <div class="form-group form-inline">
                                    <div class="btn-group">
                                        <button type="button" class="btn btn-default" title="新建" data-toggle="modal" data-target="#editModal" ng-click="entity={}" ><i class="fa fa-file-o"></i> 新建</button>
                                        <button type="button" class="btn btn-default" title="删除" ng-click="dele()"><i class="fa fa-trash-o" ></i> 删除</button>
                                        <button type="button" class="btn btn-default" title="刷新" onclick="window.location.reload();" ng-click="reloadList();searchEntity.info=null;searchEntity.status=null" ><i class="fa fa-check"></i> 刷新</button>
                                    </div>
                                </div>
                            </div>
							<div class="box-tools pull-right">
								<div class="has-feedback">
									状态：<select ng-model="searchEntity.status">
									<option   ng-click="reloadList();searchEntity.info=null;searchEntity.status=null">全部</option>
									<option value="2"  ng-click="reloadList();searchEntity.info=null">申请中</option>
									<option value="1"  ng-click="reloadList();searchEntity.info=null">审核已通过</option>
									<option value="3"  ng-click="reloadList();searchEntity.info=null">已驳回</option>
								</select>
									部门名称：<input ng-model="searchEntity.info">
									<button class="btn btn-default"  ng-click="reloadList();searchEntity.status=null">查询</button>
								</div>
							</div>
                        
			                <!--数据列表-->
			                  <table id="dataList" class="table table-bordered table-striped table-hover dataTable">
			                      <thead>
			                          <tr>
			                              <th class="" style="padding-right:0px">
			                                  <input type="checkbox" class="icheckbox_square-blue">
			                              </th> 
									      <th class="sorting">所属部门</th>
										  <th class="sorting">负责人</th>
									      <th class="sorting">成员人数</th>
									      <th class="sorting">负责人电话</th>
									      <th class="sorting">负责人学号</th>
									      <th class="sorting">负责人班级</th>
									      <th class="sorting">负责人专业</th>
									      <th class="sorting">负责人辅导员</th>
									      <th class="sorting">负责人年级</th>
                                          <th class="sorting">审核状态</th>
					                      <th class="text-center">操作</th>
			                          </tr>
			                      </thead>
			                      <tbody>
			                          <tr ng-repeat="entity  in  list">
			                              <td><input  type="checkbox" ng-click="updateSelection($event,entity.id)"></td>			                              
									      <td>{{entity.info}}</td>
										  <td>{{entity.name}}</td>
									      <td>{{entity.num}}</td>	
									      <td>{{entity.tel}}</td>		
									      <td>{{entity.stuid}}</td>
									      <td>{{entity.stuclass}}</td>
									      <td>{{entity.major}}</td>
									      <td>{{entity.teacher}}</td>
									      <td>{{entity.grade}}</td>
                                          <td ng-if="entity.status==1">审核已通过</td>
                                          <td ng-if="entity.status==2">待审核</td>
                                          <td ng-if="entity.status==3">审核未通过</td>
		                                  <td class="text-center">		                                     
		                                 	  <button type="button" class="btn bg-olive btn-xs" data-toggle="modal" data-target="#editModal" ng-click="entry(entity.id)">申请加入</button>                                           
		                                  </td>
			                          </tr>
			                      </tbody>
			                  </table>
			                  <!--数据列表/-->
                            <!-- 分页 -->
                            <tm-pagination conf="paginationConf"></tm-pagination>
                        </div>
                        <!-- 数据表格 /-->
                        
                     </div>
                    <!-- /.box-body -->
</body>
</html>